//
//  HCHomeBottomCollectionViewCell.m
//  HappyChildren
//
//  Created by WillyZhao on 2017/1/17.
//  Copyright © 2017年 WillyZhao. All rights reserved.
//

#import "HCHomeBottomCollectionViewCell.h"

#import "HCGoodsListModel.h"

@implementation HCHomeBottomCollectionViewCell

- (void)awakeFromNib {
    
    [super awakeFromNib];
    
    self.contentView_.layer.cornerRadius = 5.0f;
    self.goodsName.textColor = [UIColor blackColor];
    self.scoreLabel.textColor = YBKRGBCOLOR(240, 96, 96, 1);
    self.promptLabel.textColor = self.scoreLabel.textColor;
    self.storeLabel.textColor = self.scoreLabel.textColor;
    self.goodsIMG.contentMode = UIViewContentModeScaleAspectFill;
    self.goodsIMG.layer.masksToBounds = YES;
    self.goodsIMG.layer.cornerRadius = 5.0;
}

-(void)setModel:(id)model {
    HCGoodsListData *data = (HCGoodsListData *)model;
//    NSString *str = @"http://www.chaojimatou.com/";
    [self.goodsIMG sd_setImageWithURL:[NSURL URLWithString:[NSString stringWithFormat:@"%@",data.img]]];
    self.goodsName.text = [NSString stringWithFormat:@"%@",data.name];
    
    self.scoreLabel.text = [NSString stringWithFormat:@"%@",data.price];
}

@end
